import request from '@/utils/request'
/**  获得拼团活动明细 */
export function getCombinationActivity(params: any) {
  return request.get(`promotion/combination-activity/get-detail`, params, { isYuDao: true })
}

// 获得最近 n 条拼团记录（团长发起的）
export function getHeadCombinationRecordList(params: any) {
  return request.get(`promotion/combination-record/get-head-list`, params, { isYuDao: true })
}

// 获得拼团记录明细
export function getCombinationRecordDetail(params: any) {
  return request.get(`promotion/combination-record/get-detail`, params, { isYuDao: true })
}
/**
 * 获取商品列表
 * @returns
 */
export function getActiveCombinationActivityGoodsList(params: Record<string, any>) {
  return request.get(`promotion/combination-activity/page`, params, { isYuDao: true })
}
/**
 * 获取拼团活动列表
 */
export function getActiveComponents(params: Record<string, any>) {
  return request.get(`promotion/combination-activity/list-by-ids`, params, { isYuDao: true })
}
/**
 * 获得我的拼团记录分页
 */
export function getCombinationRecordPage(params: Record<string, any>) {
  return request.get(`promotion/combination-record/page`, params, { isYuDao: true })
}
/**
 * 获得拼团记录的概要信息
 */
export function getCombinationRecordSummary() {
  return request.get(`promotion/combination-record/get-summary`, {}, { isYuDao: true })
}
/**
 * 获得用户在拼团活动中身份
 */
export function getCheckUserCombination(params: any) {
  return request.get(`promotion/combination-record/check-user-combination`, params, { isYuDao: true })
}
/**
 * 获得获得最近 n 条拼团用户
 */
export function getNewListCombination(params: any) {
  return request.get(`promotion/combination-record/get-new-list`, params, { isYuDao: true })
}
/**
 * 获得获得最近弹幕
 */
export function getChatListCombination(params: any) {
  return request.get(`promotion/combination-record/get-chat-list`, params, { isYuDao: true })
}
/**
 * 获得分销用户排行分页（基于佣金）
 */
export function getBrokerageUserChildSummaryPageByPrice(params: any) {
  return request.get(`trade/brokerage-user/rank-page-by-price`, params, { isYuDao: true });
}